package com.mnotice.message.service;


import com.mnotice.common.entity.message.Notification;
import com.mnotice.message.factory.InformerFactory;
import org.springframework.stereotype.Service;


import javax.annotation.Resource;

@Service
public class InformService {
    @Resource
    private InformerFactory factory;

    public void inform(Notification notification) throws Exception {
        factory.getInformer(notification).inform(notification);
    }
}
